package com.zadtek.shopmall.activities;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.zadtek.shopmall.R;
import com.zadtek.shopmall.base.AbsActivity;

public class AddNewCardActivity extends AbsActivity {
    private EditText et;
    private EditText etPersonName;
    private EditText etBankAddress;
    private EditText etBankName;
    private TextView tvSubmit;
    private ImageView ivBack;
    private TextView topTitle;

    private void initView() {
        et = (EditText)findViewById( R.id.et_ );
        etPersonName = (EditText)findViewById( R.id.et_person_name );
        etBankAddress = (EditText)findViewById( R.id.et_bank_address );
        etBankName = (EditText)findViewById( R.id.et_bank_name );
        tvSubmit = (TextView)findViewById( R.id.tv_submit );
        ivBack = (ImageView) findViewById(R.id.ic_back);
        ivBack.setVisibility(View.VISIBLE);
        topTitle = (TextView) findViewById(R.id.title);
        topTitle.setText("新增银行卡");}

    @Override
    public int setView() {
        return R.layout.activity_add_new_card;
    }

    @Override
    public void initBasic(Bundle savedInstanceState) {
        initView();
        initLogic();
    }

    private void initLogic() {
        ivBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
